package com.kds.smarthome.controller.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

@Data
public class OutdoorEnvironment {
    private String region;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    private Integer temperature;
    private String humidity;

    @JsonProperty("weather_text")
    private String weatherText;

    @JsonProperty("weather_icon")
    private Integer weatherIcon;

    @JsonProperty("wind_speed_level")
    private String windSpeedLevel;

    @JsonProperty("wind_direction")
    private String windDirection;

    @JsonProperty("wind_speed_kmh")
    private Integer windSpeedKmh;

    private Integer pm2p5;

    @JsonProperty("air_quality_index")
    private Integer airQualityIndex;

    @JsonProperty("air_quality")
    private String airQuality;
}
